package com.ttbj.api.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

public class SalesmanDto implements Serializable{
	private static final long serialVersionUID = -2701399119421121066L;
	
	//主键id
	private Long salesmanId;
	//业务员编号
	private String salesmanNum;
	//业务员真实姓名
	private String salesmanRealName;
	//业务员用户名
	private String salesmanName;
	//业务员密码
	private String salesmanPwd;
	//密码盐值
	private String salesmanSalt;
	//业务员照片
	private String salesmanPic;
	//业务员所属公司编号
	private String salesmanComnum;
	//业务员手机号
	private String salesmanPhone;
	//业务员目标业绩
	private Integer salesmanGoal;
	//业务员奖金
	private BigDecimal salesmanBonus;
	//业务员类型 
	private Integer salesmanType;
	//业务员入职时间
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date salesmanJoinTime;
	//插入数据时间
	private Date salesmanInsTime;
	//更新数据时间
	private Date salesmanUpdateTime;
	//是否删除本业务员
	private Integer salesmanIsDelete;
	//用户角色主键ID
	private Long salesmanRoleId;
	//用户角色
	private RoleDto roleDto;
	//用户操作权限
	private List<PermissionDto> permissionDtoList;
	//所属公司
	private CompanyDto companyDto;
	//详细地址
	private String salesmanAddr;
	
	@Override
	public String toString() {
		return "SalesmanDto [salesmanId=" + salesmanId + ", salesmanNum=" + salesmanNum + ", salesmanRealName="
				+ salesmanRealName + ", salesmanName=" + salesmanName + ", salesmanPwd=" + salesmanPwd
				+ ", salesmanSalt=" + salesmanSalt + ", salesmanPic=" + salesmanPic + ", salesmanComnum="
				+ salesmanComnum + ", salesmanPhone=" + salesmanPhone + ", salesmanGoal=" + salesmanGoal
				+ ", salesmanBonus=" + salesmanBonus + ", salesmanType=" + salesmanType + ", salesmanJoinTime="
				+ salesmanJoinTime + ", salesmanInsTime=" + salesmanInsTime + ", salesmanUpdateTime="
				+ salesmanUpdateTime + ", salesmanIsDelete=" + salesmanIsDelete + ", salesmanRoleId=" + salesmanRoleId
				+ ", roleDto=" + roleDto + ", permissionDtoList=" + permissionDtoList + ", companyDto=" + companyDto
				+ ", salesmanAddr=" + salesmanAddr + "]";
	}
	
	
	public Long getSalesmanId() {
		return salesmanId;
	}
	public void setSalesmanId(Long salesmanId) {
		this.salesmanId = salesmanId;
	}
	public String getSalesmanNum() {
		return salesmanNum;
	}
	public void setSalesmanNum(String salesmanNum) {
		this.salesmanNum = salesmanNum;
	}
	public String getSalesmanRealName() {
		return salesmanRealName;
	}
	public void setSalesmanRealName(String salesmanRealName) {
		this.salesmanRealName = salesmanRealName;
	}
	public String getSalesmanName() {
		return salesmanName;
	}
	public void setSalesmanName(String salesmanName) {
		this.salesmanName = salesmanName;
	}
	public String getSalesmanPwd() {
		return salesmanPwd;
	}
	public void setSalesmanPwd(String salesmanPwd) {
		this.salesmanPwd = salesmanPwd;
	}
	public String getSalesmanSalt() {
		return salesmanSalt;
	}
	public void setSalesmanSalt(String salesmanSalt) {
		this.salesmanSalt = salesmanSalt;
	}
	public String getSalesmanPic() {
		return salesmanPic;
	}
	public void setSalesmanPic(String salesmanPic) {
		this.salesmanPic = salesmanPic;
	}
	public String getSalesmanComnum() {
		return salesmanComnum;
	}
	public void setSalesmanComnum(String salesmanComnum) {
		this.salesmanComnum = salesmanComnum;
	}
	public String getSalesmanPhone() {
		return salesmanPhone;
	}
	public void setSalesmanPhone(String salesmanPhone) {
		this.salesmanPhone = salesmanPhone;
	}
	public Integer getSalesmanGoal() {
		return salesmanGoal;
	}
	public void setSalesmanGoal(Integer salesmanGoal) {
		this.salesmanGoal = salesmanGoal;
	}
	public BigDecimal getSalesmanBonus() {
		return salesmanBonus;
	}
	public void setSalesmanBonus(BigDecimal salesmanBonus) {
		this.salesmanBonus = salesmanBonus;
	}
	public Integer getSalesmanType() {
		return salesmanType;
	}
	public void setSalesmanType(Integer salesmanType) {
		this.salesmanType = salesmanType;
	}
	public Date getSalesmanJoinTime() {
		return salesmanJoinTime;
	}
	public void setSalesmanJoinTime(Date salesmanJoinTime) {
		this.salesmanJoinTime = salesmanJoinTime;
	}
	public Date getSalesmanInsTime() {
		return salesmanInsTime;
	}
	public void setSalesmanInsTime(Date salesmanInsTime) {
		this.salesmanInsTime = salesmanInsTime;
	}
	public Date getSalesmanUpdateTime() {
		return salesmanUpdateTime;
	}
	public void setSalesmanUpdateTime(Date salesmanUpdateTime) {
		this.salesmanUpdateTime = salesmanUpdateTime;
	}
	public Integer getSalesmanIsDelete() {
		return salesmanIsDelete;
	}
	public void setSalesmanIsDelete(Integer salesmanIsDelete) {
		this.salesmanIsDelete = salesmanIsDelete;
	}
	public Long getSalesmanRoleId() {
		return salesmanRoleId;
	}
	public void setSalesmanRoleId(Long salesmanRoleId) {
		this.salesmanRoleId = salesmanRoleId;
	}
	public RoleDto getRoleDto() {
		return roleDto;
	}
	public void setRoleDto(RoleDto roleDto) {
		this.roleDto = roleDto;
	}
	public List<PermissionDto> getPermissionDtoList() {
		return permissionDtoList;
	}
	public void setPermissionDtoList(List<PermissionDto> permissionDtoList) {
		this.permissionDtoList = permissionDtoList;
	}
	public CompanyDto getCompanyDto() {
		return companyDto;
	}
	public void setCompanyDto(CompanyDto companyDto) {
		this.companyDto = companyDto;
	}
	public String getSalesmanAddr() {
		return salesmanAddr;
	}
	public void setSalesmanAddr(String salesmanAddr) {
		this.salesmanAddr = salesmanAddr;
	}
	
}
